<nz-modal [(nzVisible)]="isVisible" [nzWidth]="modalWidth" (nzOnCancel)="onBack()" [nzStyle]="{'top': '50px'}">
  <div *nzModalTitle>{{ title }}</div>
  <ng-container *nzModalContent>
    <form nz-form class="search-form" [formGroup]="searchForm" (keydown.enter)="$event.preventDefault();onSearch()" nzLayout="inline">
      <nz-form-item>
        <nz-form-label nzFor="username">用户名</nz-form-label>
        <nz-form-control>
          <input nz-input formControlName="username" placeholder="请输入用户名" />
        </nz-form-control>
      </nz-form-item>
<nz-form-item>
        <nz-form-label nzFor="name">姓名</nz-form-label>
        <nz-form-control>
          <input nz-input formControlName="name" placeholder="请输入姓名" />
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="gender">性别</nz-form-label>
        <nz-form-control>
          <nz-select formControlName="gender" class="custom-select-width">
            <nz-option nzLabel="男" [nzValue]="1"></nz-option>
            <nz-option nzLabel="女" [nzValue]="2"></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
      <button nz-button type="button" nzType="primary" [nzLoading]="searchLoading" (click)="onSearch()">查询</button>
      <button nz-button type="button" class="margin-button" (click)="onReset()">重置</button>
    </form>
    <nz-table #basicTable [nzData]="listOfData" [nzTotal]="total" [nzLoading]="searchLoading" nzSize="small">
      <thead>
        <tr>
          <th>用户名</th>
          <th>姓名</th>
          <th>密码</th>
          <th>性别</th>
          <th>出生日期</th>
          <th>联系电话</th>
          <th>邮箱</th>
          <th>省</th>
          <th>市</th>
          <th>区</th>
          <th>家庭地址</th>
        </tr>
      </thead>
      <tbody>
        <tr *ngFor="let data of basicTable.data" (dblclick)="onRowDblClick(data, $event)">
          <td>{{data.username}}</td>
          <td>{{data.name}}</td>
          <td>{{data.password}}</td>
          <td>
            <ng-container *ngIf="data.gender === 1">男</ng-container>
            <ng-container *ngIf="data.gender === 2">女</ng-container>
          </td>
          <td>{{data.birthDate}}</td>
          <td>{{data.contactPhone}}</td>
          <td>{{data.email}}</td>
          <td>{{data.provinceName}}</td>
          <td>{{data.cityName}}</td>
          <td>{{data.areaName}}</td>
          <td>{{data.address}}</td>
        </tr>
      </tbody>
    </nz-table>
  </ng-container>
  <div *nzModalFooter>
    <div class="form-button-container">
      <button nz-button nzType="default" (click)="onBack()">关闭</button>
    </div>
  </div>
</nz-modal>
